<template>
  <div class="md-condition-us">
    <h3>{{ info.title }}</h3>
    <div class="md-condition-us-container">
      <div class="md-label-box">
        <div class="md-content" v-html="info.content"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MdAboutUsComponent',
  layout: 'dynamic',
  data () {
    return {
      info: {
        title: 'condition',
        content: ''
      }
    }
  },
  mounted () {
    this.getInfo()
  },
  methods: {
    async getInfo () {
      const res = await this.$axios.get('web/article/6')
      if (res.code == 200) {
        if (res.data) {
          this.info = res.data
        }
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.md-condition-us {
  width: 100%;
  background: linear-gradient( 225deg, #F0F5FE 0%, #FCF0FD 100%);
  height: calc(100vh - 66px);
  overflow: auto;
  padding: 80px 190px 40px 170px;
  box-sizing: border-box;
  h3 {
    font-family: SourceHanSansSC, SourceHanSansSC;
    font-weight: bold;
    font-size: 30px;
    color: #5865F1;
    line-height: 44px;
    margin-bottom: 24px;
  }
  .md-condition-us-container {
    display: flex;
    .md-label-box {
      flex: 1;
      p {
        font-family: SourceHanSansSC, SourceHanSansSC;
        font-weight: 400;
        font-size: 24px;
        color: #525360;
        line-height: 35px;
        text-align: left;
      }
    }
    .md-pic-box {
      width: 550px;
      height: 550px;
      object-fit: cover;
      flex-shrink: 0;
      margin-left: 130px;
    }
  }
  .md-content {
    ::v-deep p {
      font-size: 16px !important;
      color: #525360 !important;
      line-height: 1.5 !important;
      margin-bottom: 10px;
      strong {
        margin: 10px 0;
      }
    }
    img {
      width: 100%;
      margin-bottom: 10px;
    }
    ul {
      margin-top: 10px;
      li {
        font-size: 16px !important;
        color: #444 !important;
        line-height: 1.5 !important;
        margin-bottom: 10px;
      }
    }
  }
}
</style>
